package com.lagou.rpc.pojo;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * @author xingyi
 */
public class RequestStat {
    private String server;
    private long consume;
    private long timestamp;

    public RequestStat(String server, long consume, long timestamp) {
        this.server = server;
        this.consume = consume;
        this.timestamp = timestamp;
    }

    public String getServer() {
        return server;
    }

    public void setServer(String server) {
        this.server = server;
    }

    public long getConsume() {
        return consume;
    }

    public void setConsume(long consume) {
        this.consume = consume;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("server", server)
                .append("consume", consume)
                .append("timestamp", timestamp)
                .toString();
    }
}
